package com.accp.info;

import java.util.HashSet;
import java.util.Set;

/**
 * Users entity. @author MyEclipse Persistence Tools
 */

public class Users implements java.io.Serializable {

	// Fields

	private Integer id;
	private Userstates userstates;
	private Userroles userroles;
	private String name;
	private String address;
	private String phone;
	private String mail;
	private Integer isonline;
	private String loginid;
	private String loginpwd;
	private Integer gender;
	private Set bookratingses = new HashSet(0);
	private Set orderses = new HashSet(0);

	// Constructors

	/** default constructor */
	public Users() {
	}

	/** minimal constructor */
	public Users(Userstates userstates, Userroles userroles, String name,
			String address, String phone, String mail, String loginid,
			String loginpwd) {
		this.userstates = userstates;
		this.userroles = userroles;
		this.name = name;
		this.address = address;
		this.phone = phone;
		this.mail = mail;
		this.loginid = loginid;
		this.loginpwd = loginpwd;
	}

	/** full constructor */
	public Users(Userstates userstates, Userroles userroles, String name,
			String address, String phone, String mail, Integer isonline,
			String loginid, String loginpwd, Integer gender, Set bookratingses,
			Set orderses) {
		this.userstates = userstates;
		this.userroles = userroles;
		this.name = name;
		this.address = address;
		this.phone = phone;
		this.mail = mail;
		this.isonline = isonline;
		this.loginid = loginid;
		this.loginpwd = loginpwd;
		this.gender = gender;
		this.bookratingses = bookratingses;
		this.orderses = orderses;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Userstates getUserstates() {
		return this.userstates;
	}

	public void setUserstates(Userstates userstates) {
		this.userstates = userstates;
	}

	public Userroles getUserroles() {
		return this.userroles;
	}

	public void setUserroles(Userroles userroles) {
		this.userroles = userroles;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMail() {
		return this.mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public Integer getIsonline() {
		return this.isonline;
	}

	public void setIsonline(Integer isonline) {
		this.isonline = isonline;
	}

	public String getLoginid() {
		return this.loginid;
	}

	public void setLoginid(String loginid) {
		this.loginid = loginid;
	}

	public String getLoginpwd() {
		return this.loginpwd;
	}

	public void setLoginpwd(String loginpwd) {
		this.loginpwd = loginpwd;
	}

	public Integer getGender() {
		return this.gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public Set getBookratingses() {
		return this.bookratingses;
	}

	public void setBookratingses(Set bookratingses) {
		this.bookratingses = bookratingses;
	}

	public Set getOrderses() {
		return this.orderses;
	}

	public void setOrderses(Set orderses) {
		this.orderses = orderses;
	}

}